﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DreamBuilder.Common;
using ePlanet.ArchiveMange.Models;
using System.Data;

namespace ePlanet.ArchiveMange.Services
{
    public interface IZongheVolService:IBusiness,IArchiveBase
    {
        /// <summary>
        /// 获取全部的勘探综合卷信息
        /// </summary>
        /// <returns></returns>
        ArchiveMangeModal.OLISEARCH_ZONGHE_VOLDataTable GetAllZongheVolData();

        /// <summary>
        /// 根据主键查询勘探综合卷信息
        /// </summary>
        /// <param name="typeId"></param>
        /// <returns></returns>
        ArchiveMangeModal.OLISEARCH_ZONGHE_VOLDataTable GetAllZongheVolDataById(string DATAID);
        
        /// <summary>
        /// 根据查询条件查询勘探综合卷信息
        /// </summary>
        /// <param name="typeId"></param>
        /// <returns></returns>
        ArchiveMangeModal.OLISEARCH_ZONGHE_VOLDataTable GetAllDocumenArchivetByFilter(string filter);
        /// <summary>
        /// 备注：根据DATAID列表取对应勘探综合卷信息
        /// 时间：2013年1月9日 23:47:41
        /// </summary>
        /// <param name="idList"></param>
        /// <returns></returns>
        DataTable GetZongheVolDataByIds(IEnumerable<string> idList);

        DataTable GetHandoverDataByIds(IEnumerable<string> idList);

        DataTable GetZongheVolDateSpanByIds(IEnumerable<string> idList);

        DataTable GetDataIdByArchiveCodeRange(string startCode, string endCode);

        /// <summary>
        /// 根据档案类型查询勘探综合卷信息
        /// </summary>
        /// <param name="typeId"></param>
        /// <returns></returns>
        ArchiveMangeModal.OLISEARCH_ZONGHE_VOLDataTable GetZongheVolDataByType(string archiveType);

        /// <summary>
        /// 保存勘探综合卷的卷内件
        /// </summary>
        /// <param name="dt_PageFile"></param>
        /// <param name="DATAID"></param>
        /// <returns></returns>
        bool SavePageFile(IList<string> fileIdList, string DATAID);
        /// <summary>
        /// 根据档案ID获取卷内件
        /// </summary>
        /// <param name="DATAID"></param>
        /// <returns></returns>
        DataTable GetPageFileByDATAID(string DATAID);

    }
}
